package ae.pcfc.etks.online.common.vo;

import java.sql.SQLData;
import java.sql.SQLException;
import java.sql.SQLInput;
import java.sql.SQLOutput;

public class ClientRoleType implements SQLData {
	private String sql_type ;
	public Long roleId;
	public String roleStatus;
	
	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public String getRoleStatus() {
		return roleStatus;
	}

	public void setRoleStatus(String roleStatus) {
		this.roleStatus = roleStatus;
	}

	public String getSQLTypeName() throws SQLException {
		return sql_type;
	}

	public void readSQL(SQLInput stream, String typeName) throws SQLException {
		sql_type = typeName;
		roleId = Long.valueOf(stream.readString());
		roleStatus = stream.readString();
	}

	public void writeSQL(SQLOutput stream) throws SQLException {
		stream.writeString(String.valueOf(roleId));
		stream.writeString(roleStatus);
	}

	public ClientRoleType() {
	}
}